<?php
/* @var $this MembersController */
/* @var $model Members */

//$this->breadcrumbs=array(
	//'Members'=>array('index'),
	//$model->member_id,
//);

/*
$this->menu=array(
	array('label'=>'List Members', 'url'=>array('index')),
	array('label'=>'Create Members', 'url'=>array('create')),
	array('label'=>'Update Members', 'url'=>array('update', 'id'=>$model->member_id)),
	array('label'=>'Delete Members', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->member_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Members', 'url'=>array('admin')),
);*/
?>
    
<?php
/*
    $this->widget('bootstrap.widgets.TbDetailView', array(
        'type'=>'striped bordered condensed',
	'data'=>$model,
	'attributes'=>array(
		'member_id',
		'username',
		'password',
		'email',
		'connection_count',
		'about',
                
	),
)); 
*/


?>
<div id="single-wrap">
<h1><?php echo CHtml::encode($model->nickname); ?></h1>
    <h2>About</h2>
    <p><?php echo CHtml::encode($model->about); ?></p>
    <p>&nbsp;</p>
    
   <div class="fixed_column" style="width:140px; margin-right:10px; margin-left:30px; margin-top:0; margin-bottom:20px"> 
       <div style="text-align:center;position:relative;margin-left:auto;margin-right:auto">
           <div style="background-image:url(<?php echo Yii::app()->theme->baseUrl;?>/img/profile/<?php echo $model->img_profile;?>.jpg)" class="roundimage">
               
           </div>
           <p></p>
            <p></p>
            <h5 class="typograph dark"> Connections </h5>  <?php echo $model->connection_count; ?>  <p></p>
            <p>
                <a href="#" class="social_shortcode social_shortcode_facebook"><span></span></a>
                <a href="#" class="social_shortcode social_shortcode_twitter"><span></span></a>
                <a href="#" class="social_shortcode social_shortcode_flickr"><span></span></a>
                <a href="#" class="social_shortcode social_shortcode_youtube"><span></span></a>
            </p>
       </div>
       <p></p>
    <p></p>
   </div>
    

 
<div class="sidebar_right">
        <ul class="sidebar_right_widget">

                    <li class="widget-container widget_text">
                                    <h3 class="widget-title">WHAT’S NEW?</h3>
                                    <div class="textwidget">Dignissim risus tincidunt, dictumst ultrices, aliquet nunc elementum adipiscing pulvinar in diam sit pellentesque integer adipiscing</div>
                    </li><!--TEXT widget-->

                    <li class="widget-container tweet">
                            <h3 class="widget-title"><span class="widget_open"></span>LATEST TWEETS</h3>
                            <div class="tweets widget_con"><ul class="tweet_list"></ul><p class="loading">loading tweets...</p></div>
                    </li><!--Recent Tewitter widget-->

                    <li class="widget-container widget_archive">
                            <h3 class="widget-title">ARCHIVES</h3>
                            <ul>
                                    <li><a href="#" title="November 2012">November 2012</a></li>
                                    <li><a href="#" title="October 2012">October 2012</a></li>
                                    <li><a href="#" title="September 2012">September 2012</a></li>
                                    <li><a href="#" title="August 2012">August 2012</a></li>
                            </ul>
                    </li><!--List widget-->
            </ul>
</div>   


<?php 

//Teste do foreach - works
//$ultimos_comentarios=Activitys::model()->comments()->findAll();
//foreach($ultimos_comentarios as $i=>$c){
//       echo $c->action.'</br>';
//}

/*$gridDataProvider = new CActiveDataProvider('Activitys', array(
                    'criteria' => array(
                        'condition' => 'member_id=:member_id',
                        'params' => array(':member_id'=>$model->member_id),
                    ),
                    'pagination' => array('pageSize' => 10),
                ));

$this->widget('bootstrap.widgets.TbGridView', array(
        'dataProvider'=>$gridDataProvider,
        'columns'=>array(),
));*/
?>

</div> 
      
      
